package com.jyx.refactor.beginner.service.impl;

import com.jyx.refactor.beginner.Movie;
import com.jyx.refactor.beginner.service.Price;

public class NewReleasePrice extends Price {

	public int getPriceCode() {
		return Movie.NEW_RELEASE;
	}

	
	public double calcAmount(int daysRented) {
		return daysRented * 3;
	}

	public int calcIntegral(int daysRented) {
		return daysRented > 1 ? 2 : 1;
	}

}
